package com.pkcargo.web;

import com.opensymphony.xwork2.ActionSupport;
import com.pkcargo.service.search.SearchManager;
import com.pkcargo.entity.search.Metadata;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * User: Howard.Lin - linhua3721@gmail.com
 * DateTime: 2009-5-21 16:45:48
 * This is Pkcargo.com project.提供全球物流信息的抓取和垂直搜索
 */
public class IndexAction extends ActionSupport {
    @Autowired
    private SearchManager searchManager;
    private List<Metadata> metadatas;
    public List<Metadata> getMetadatas() {
        return metadatas;
    }

    @Override
    public String execute() {
        metadatas = searchManager.indexList();
        return SUCCESS;
    }
}
